﻿namespace com.huawei.esdk.tp.professional.eSDKTPProfessionalSiteMgr
{
    using System;
    using System.Web.Services;
    using System.Diagnostics;
    using System.Web.Services.Protocols;
    using System.ComponentModel;
    using System.Xml.Serialization;
    using com.huawei.esdk.tp.professional.DataType;


    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name = "TPProfessionalSiteMgrServiceSoapBinding", Namespace = "http://smc.huawei.com/")]
    public partial class TPProfessionalSiteMgrService : System.Web.Services.Protocols.SoapHttpClientProtocol
    {

        private System.Threading.SendOrPostCallback setAuxStreamExOperationCompleted;

        private System.Threading.SendOrPostCallback querySitesInfoExOperationCompleted;

        private System.Threading.SendOrPostCallback queryVideoOutSrcStateExOperationCompleted;

        private System.Threading.SendOrPostCallback ctrlCameraExOperationCompleted;

        private System.Threading.SendOrPostCallback setMainAuxStreamSourcesExOperationCompleted;

        private System.Threading.SendOrPostCallback queryMainStreamSourcesExOperationCompleted;

        private System.Threading.SendOrPostCallback isReceiveRemAuxStrmExOperationCompleted;

        private System.Threading.SendOrPostCallback deleteSiteInfoExOperationCompleted;

        private System.Threading.SendOrPostCallback addSiteInfoExOperationCompleted;

        private System.Threading.SendOrPostCallback isSendAuxStreamExOperationCompleted;

        private System.Threading.SendOrPostCallback editSiteInfoExOperationCompleted;

        private System.Threading.SendOrPostCallback setVideoOutSrcExOperationCompleted;

        private System.Threading.SendOrPostCallback queryAuxStreamSourcesExOperationCompleted;

        private System.Threading.SendOrPostCallback querySiteVersionInfoExOperationCompleted;

        private System.Threading.SendOrPostCallback isConnectAuxSourceExOperationCompleted;

        //private bool useDefaultCredentialsSetExplicitly;

        /// <remarks/>
        public TPProfessionalSiteMgrService()
        {
            /*this.Url = com.huawei.tp.tp.professional.Utils.UtilsSettings.URL + "tpProfessionalSiteMgr";
            if ((this.IsLocalFileSystemWebService(this.Url) == true))
            {
                this.UseDefaultCredentials = true;
                this.useDefaultCredentialsSetExplicitly = false;
            }
            else
            {
                this.useDefaultCredentialsSetExplicitly = true;
            }*/
            this.Url = "http://localhost:8080/";
        }

        public TPProfessionalSiteMgrService(string url)
        {
            this.Url = url;
        }

        /// <remarks/>
        public event setAuxStreamExCompletedEventHandler setAuxStreamExCompleted;

        /// <remarks/>
        public event querySitesInfoExCompletedEventHandler querySitesInfoExCompleted;

        /// <remarks/>
        public event queryVideoOutSrcStateExCompletedEventHandler queryVideoOutSrcStateExCompleted;

        /// <remarks/>
        public event ctrlCameraExCompletedEventHandler ctrlCameraExCompleted;

        /// <remarks/>
        public event setMainAuxStreamSourcesExCompletedEventHandler setMainAuxStreamSourcesExCompleted;

        /// <remarks/>
        public event queryMainStreamSourcesExCompletedEventHandler queryMainStreamSourcesExCompleted;

        /// <remarks/>
        public event isReceiveRemAuxStrmExCompletedEventHandler isReceiveRemAuxStrmExCompleted;

        /// <remarks/>
        public event deleteSiteInfoExCompletedEventHandler deleteSiteInfoExCompleted;

        /// <remarks/>
        public event addSiteInfoExCompletedEventHandler addSiteInfoExCompleted;

        /// <remarks/>
        public event isSendAuxStreamExCompletedEventHandler isSendAuxStreamExCompleted;

        /// <remarks/>
        public event editSiteInfoExCompletedEventHandler editSiteInfoExCompleted;

        /// <remarks/>
        public event setVideoOutSrcExCompletedEventHandler setVideoOutSrcExCompleted;

        /// <remarks/>
        public event queryAuxStreamSourcesExCompletedEventHandler queryAuxStreamSourcesExCompleted;

        /// <remarks/>
        public event querySiteVersionInfoExCompletedEventHandler querySiteVersionInfoExCompleted;

        /// <remarks/>
        public event isConnectAuxSourceExCompletedEventHandler isConnectAuxSourceExCompleted;

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smc.huawei.com/setAuxStreamEx", RequestNamespace = "http://smc.huawei.com/", ResponseNamespace = "http://smc.huawei.com/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute("resultCode", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public int setAuxStreamEx([System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string siteUri, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] int controlCode)
        {
            object[] results = this.Invoke("setAuxStreamEx", new object[] {
                        siteUri,
                        controlCode});
            return ((int)(results[0]));
        }

        /// <remarks/>
        public void setAuxStreamExAsync(string siteUri, int controlCode)
        {
            this.setAuxStreamExAsync(siteUri, controlCode, null);
        }

        /// <remarks/>
        public void setAuxStreamExAsync(string siteUri, int controlCode, object userState)
        {
            if ((this.setAuxStreamExOperationCompleted == null))
            {
                this.setAuxStreamExOperationCompleted = new System.Threading.SendOrPostCallback(this.OnsetAuxStreamExOperationCompleted);
            }
            this.InvokeAsync("setAuxStreamEx", new object[] {
                        siteUri,
                        controlCode}, this.setAuxStreamExOperationCompleted, userState);
        }

        private void OnsetAuxStreamExOperationCompleted(object arg)
        {
            if ((this.setAuxStreamExCompleted != null))
            {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.setAuxStreamExCompleted(this, new setAuxStreamExCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smc.huawei.com/querySitesInfoEx", RequestNamespace = "http://smc.huawei.com/", ResponseNamespace = "http://smc.huawei.com/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute("resultCode", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public int querySitesInfoEx(
            [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] QueryConfigEx queryConfig, 
            [System.Xml.Serialization.XmlElementAttribute("sites", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = true)] out TerminalInfoEx[] sites, 
            [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] out PagesInfoEx pageInfo)
        {
            object[] results = this.Invoke("querySitesInfoEx", new object[] {
                        queryConfig});
            sites = ((TerminalInfoEx[])(results[1]));
            pageInfo = ((PagesInfoEx)(results[2]));
            return ((int)(results[0]));
        }

        /// <remarks/>
        public void querySitesInfoExAsync(QueryConfigEx queryConfig)
        {
            this.querySitesInfoExAsync(queryConfig, null);
        }

        /// <remarks/>
        public void querySitesInfoExAsync(QueryConfigEx queryConfig, object userState)
        {
            if ((this.querySitesInfoExOperationCompleted == null))
            {
                this.querySitesInfoExOperationCompleted = new System.Threading.SendOrPostCallback(this.OnquerySitesInfoExOperationCompleted);
            }
            this.InvokeAsync("querySitesInfoEx", new object[] {
                        queryConfig}, this.querySitesInfoExOperationCompleted, userState);
        }

        private void OnquerySitesInfoExOperationCompleted(object arg)
        {
            if ((this.querySitesInfoExCompleted != null))
            {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.querySitesInfoExCompleted(this, new querySitesInfoExCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smc.huawei.com/queryVideoOutSrcStateEx", RequestNamespace = "http://smc.huawei.com/", ResponseNamespace = "http://smc.huawei.com/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute("resultCode", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public int queryVideoOutSrcStateEx([System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string siteUri, [System.Xml.Serialization.XmlElementAttribute("videoSourcesInfos", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = true)] out VideoSourcesInfoEx[] videoSourcesInfos)
        {
            object[] results = this.Invoke("queryVideoOutSrcStateEx", new object[] {
                        siteUri});
            videoSourcesInfos = ((VideoSourcesInfoEx[])(results[1]));
            return ((int)(results[0]));
        }

        /// <remarks/>
        public void queryVideoOutSrcStateExAsync(string siteUri)
        {
            this.queryVideoOutSrcStateExAsync(siteUri, null);
        }

        /// <remarks/>
        public void queryVideoOutSrcStateExAsync(string siteUri, object userState)
        {
            if ((this.queryVideoOutSrcStateExOperationCompleted == null))
            {
                this.queryVideoOutSrcStateExOperationCompleted = new System.Threading.SendOrPostCallback(this.OnqueryVideoOutSrcStateExOperationCompleted);
            }
            this.InvokeAsync("queryVideoOutSrcStateEx", new object[] {
                        siteUri}, this.queryVideoOutSrcStateExOperationCompleted, userState);
        }

        private void OnqueryVideoOutSrcStateExOperationCompleted(object arg)
        {
            if ((this.queryVideoOutSrcStateExCompleted != null))
            {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.queryVideoOutSrcStateExCompleted(this, new queryVideoOutSrcStateExCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smc.huawei.com/ctrlCameraEx", RequestNamespace = "http://smc.huawei.com/", ResponseNamespace = "http://smc.huawei.com/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute("resultCode", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public int ctrlCameraEx([System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string siteUri, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] CameraControlEx cameraControl)
        {
            object[] results = this.Invoke("ctrlCameraEx", new object[] {
                        siteUri,
                        cameraControl});
            return ((int)(results[0]));
        }

        /// <remarks/>
        public void ctrlCameraExAsync(string siteUri, CameraControlEx cameraControl)
        {
            this.ctrlCameraExAsync(siteUri, cameraControl, null);
        }

        /// <remarks/>
        public void ctrlCameraExAsync(string siteUri, CameraControlEx cameraControl, object userState)
        {
            if ((this.ctrlCameraExOperationCompleted == null))
            {
                this.ctrlCameraExOperationCompleted = new System.Threading.SendOrPostCallback(this.OnctrlCameraExOperationCompleted);
            }
            this.InvokeAsync("ctrlCameraEx", new object[] {
                        siteUri,
                        cameraControl}, this.ctrlCameraExOperationCompleted, userState);
        }

        private void OnctrlCameraExOperationCompleted(object arg)
        {
            if ((this.ctrlCameraExCompleted != null))
            {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.ctrlCameraExCompleted(this, new ctrlCameraExCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smc.huawei.com/setMainAuxStreamSourcesEx", RequestNamespace = "http://smc.huawei.com/", ResponseNamespace = "http://smc.huawei.com/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute("resultCode", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public int setMainAuxStreamSourcesEx(
            [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string siteUri, 
            [System.Xml.Serialization.XmlElementAttribute("localMainSrcs", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] int?[] localMainSrcs, 
            [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] int localAuxSrc)
        {
            object[] results = this.Invoke("setMainAuxStreamSourcesEx", new object[] {
                        siteUri,
                        localMainSrcs,
                        localAuxSrc});
            return ((int)(results[0]));
        }

        /// <remarks/>
        public void setMainAuxStreamSourcesExAsync(string siteUri, int[] localMainSrcs, int localAuxSrc)
        {
            this.setMainAuxStreamSourcesExAsync(siteUri, localMainSrcs, localAuxSrc, null);
        }

        /// <remarks/>
        public void setMainAuxStreamSourcesExAsync(string siteUri, int[] localMainSrcs, int localAuxSrc, object userState)
        {
            if ((this.setMainAuxStreamSourcesExOperationCompleted == null))
            {
                this.setMainAuxStreamSourcesExOperationCompleted = new System.Threading.SendOrPostCallback(this.OnsetMainAuxStreamSourcesExOperationCompleted);
            }
            this.InvokeAsync("setMainAuxStreamSourcesEx", new object[] {
                        siteUri,
                        localMainSrcs,
                        localAuxSrc}, this.setMainAuxStreamSourcesExOperationCompleted, userState);
        }

        private void OnsetMainAuxStreamSourcesExOperationCompleted(object arg)
        {
            if ((this.setMainAuxStreamSourcesExCompleted != null))
            {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.setMainAuxStreamSourcesExCompleted(this, new setMainAuxStreamSourcesExCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smc.huawei.com/queryMainStreamSourcesEx", RequestNamespace = "http://smc.huawei.com/", ResponseNamespace = "http://smc.huawei.com/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute("resultCode", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public int queryMainStreamSourcesEx([System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string siteUri, [System.Xml.Serialization.XmlElementAttribute("auxStreams", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = true)] out AuxStreamInfoEx[] auxStreams)
        {
            object[] results = this.Invoke("queryMainStreamSourcesEx", new object[] {
                        siteUri});
            auxStreams = ((AuxStreamInfoEx[])(results[1]));
            return ((int)(results[0]));
        }

        /// <remarks/>
        public void queryMainStreamSourcesExAsync(string siteUri)
        {
            this.queryMainStreamSourcesExAsync(siteUri, null);
        }

        /// <remarks/>
        public void queryMainStreamSourcesExAsync(string siteUri, object userState)
        {
            if ((this.queryMainStreamSourcesExOperationCompleted == null))
            {
                this.queryMainStreamSourcesExOperationCompleted = new System.Threading.SendOrPostCallback(this.OnqueryMainStreamSourcesExOperationCompleted);
            }
            this.InvokeAsync("queryMainStreamSourcesEx", new object[] {
                        siteUri}, this.queryMainStreamSourcesExOperationCompleted, userState);
        }

        private void OnqueryMainStreamSourcesExOperationCompleted(object arg)
        {
            if ((this.queryMainStreamSourcesExCompleted != null))
            {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.queryMainStreamSourcesExCompleted(this, new queryMainStreamSourcesExCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smc.huawei.com/isReceiveRemAuxStrmEx", RequestNamespace = "http://smc.huawei.com/", ResponseNamespace = "http://smc.huawei.com/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute("resultCode", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public int isReceiveRemAuxStrmEx([System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string siteUri, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] out int result, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] [System.Xml.Serialization.XmlIgnoreAttribute()] out bool resultSpecified)
        {
            object[] results = this.Invoke("isReceiveRemAuxStrmEx", new object[] {
                        siteUri});
            result = ((int)(results[1]));
            resultSpecified = ((bool)(results[2]));
            return ((int)(results[0]));
        }

        /// <remarks/>
        public void isReceiveRemAuxStrmExAsync(string siteUri)
        {
            this.isReceiveRemAuxStrmExAsync(siteUri, null);
        }

        /// <remarks/>
        public void isReceiveRemAuxStrmExAsync(string siteUri, object userState)
        {
            if ((this.isReceiveRemAuxStrmExOperationCompleted == null))
            {
                this.isReceiveRemAuxStrmExOperationCompleted = new System.Threading.SendOrPostCallback(this.OnisReceiveRemAuxStrmExOperationCompleted);
            }
            this.InvokeAsync("isReceiveRemAuxStrmEx", new object[] {
                        siteUri}, this.isReceiveRemAuxStrmExOperationCompleted, userState);
        }

        private void OnisReceiveRemAuxStrmExOperationCompleted(object arg)
        {
            if ((this.isReceiveRemAuxStrmExCompleted != null))
            {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.isReceiveRemAuxStrmExCompleted(this, new isReceiveRemAuxStrmExCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smc.huawei.com/deleteSiteInfoEx", RequestNamespace = "http://smc.huawei.com/", ResponseNamespace = "http://smc.huawei.com/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute("resultCode", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public int deleteSiteInfoEx([System.Xml.Serialization.XmlElementAttribute("siteUris", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string[] siteUris)
        {
            object[] results = this.Invoke("deleteSiteInfoEx", new object[] {
                        siteUris});
            return ((int)(results[0]));
        }

        /// <remarks/>
        public void deleteSiteInfoExAsync(string[] siteUris)
        {
            this.deleteSiteInfoExAsync(siteUris, null);
        }

        /// <remarks/>
        public void deleteSiteInfoExAsync(string[] siteUris, object userState)
        {
            if ((this.deleteSiteInfoExOperationCompleted == null))
            {
                this.deleteSiteInfoExOperationCompleted = new System.Threading.SendOrPostCallback(this.OndeleteSiteInfoExOperationCompleted);
            }
            this.InvokeAsync("deleteSiteInfoEx", new object[] {
                        siteUris}, this.deleteSiteInfoExOperationCompleted, userState);
        }

        private void OndeleteSiteInfoExOperationCompleted(object arg)
        {
            if ((this.deleteSiteInfoExCompleted != null))
            {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.deleteSiteInfoExCompleted(this, new deleteSiteInfoExCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smc.huawei.com/addSiteInfoEx", RequestNamespace = "http://smc.huawei.com/", ResponseNamespace = "http://smc.huawei.com/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute("resultCode", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public int addSiteInfoEx(
            [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string orgId, 
            [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] TerminalInfoEx siteInfo)
        {
            object[] results = this.Invoke("addSiteInfoEx", new object[] {
                        orgId,
                        siteInfo});
            return ((int)(results[0]));
        }

        /// <remarks/>
        public void addSiteInfoExAsync(string orgId, TerminalInfoEx siteInfo)
        {
            this.addSiteInfoExAsync(orgId, siteInfo, null);
        }

        /// <remarks/>
        public void addSiteInfoExAsync(string orgId, TerminalInfoEx siteInfo, object userState)
        {
            if ((this.addSiteInfoExOperationCompleted == null))
            {
                this.addSiteInfoExOperationCompleted = new System.Threading.SendOrPostCallback(this.OnaddSiteInfoExOperationCompleted);
            }
            this.InvokeAsync("addSiteInfoEx", new object[] {
                        orgId,
                        siteInfo}, this.addSiteInfoExOperationCompleted, userState);
        }

        private void OnaddSiteInfoExOperationCompleted(object arg)
        {
            if ((this.addSiteInfoExCompleted != null))
            {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.addSiteInfoExCompleted(this, new addSiteInfoExCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smc.huawei.com/isSendAuxStreamEx", RequestNamespace = "http://smc.huawei.com/", ResponseNamespace = "http://smc.huawei.com/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute("resultCode", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public int isSendAuxStreamEx([System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string siteUri, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] out int result, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] [System.Xml.Serialization.XmlIgnoreAttribute()] out bool resultSpecified)
        {
            object[] results = this.Invoke("isSendAuxStreamEx", new object[] {
                        siteUri});
            result = ((int)(results[1]));
            resultSpecified = ((bool)(results[2]));
            return ((int)(results[0]));
        }

        /// <remarks/>
        public void isSendAuxStreamExAsync(string siteUri)
        {
            this.isSendAuxStreamExAsync(siteUri, null);
        }

        /// <remarks/>
        public void isSendAuxStreamExAsync(string siteUri, object userState)
        {
            if ((this.isSendAuxStreamExOperationCompleted == null))
            {
                this.isSendAuxStreamExOperationCompleted = new System.Threading.SendOrPostCallback(this.OnisSendAuxStreamExOperationCompleted);
            }
            this.InvokeAsync("isSendAuxStreamEx", new object[] {
                        siteUri}, this.isSendAuxStreamExOperationCompleted, userState);
        }

        private void OnisSendAuxStreamExOperationCompleted(object arg)
        {
            if ((this.isSendAuxStreamExCompleted != null))
            {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.isSendAuxStreamExCompleted(this, new isSendAuxStreamExCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smc.huawei.com/editSiteInfoEx", RequestNamespace = "http://smc.huawei.com/", ResponseNamespace = "http://smc.huawei.com/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute("resultCode", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public int editSiteInfoEx([System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] TerminalInfoEx siteInfo)
        {
            object[] results = this.Invoke("editSiteInfoEx", new object[] {
                        siteInfo});
            return ((int)(results[0]));
        }

        /// <remarks/>
        public void editSiteInfoExAsync(TerminalInfoEx siteInfo)
        {
            this.editSiteInfoExAsync(siteInfo, null);
        }

        /// <remarks/>
        public void editSiteInfoExAsync(TerminalInfoEx siteInfo, object userState)
        {
            if ((this.editSiteInfoExOperationCompleted == null))
            {
                this.editSiteInfoExOperationCompleted = new System.Threading.SendOrPostCallback(this.OneditSiteInfoExOperationCompleted);
            }
            this.InvokeAsync("editSiteInfoEx", new object[] {
                        siteInfo}, this.editSiteInfoExOperationCompleted, userState);
        }

        private void OneditSiteInfoExOperationCompleted(object arg)
        {
            if ((this.editSiteInfoExCompleted != null))
            {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.editSiteInfoExCompleted(this, new editSiteInfoExCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smc.huawei.com/setVideoOutSrcEx", RequestNamespace = "http://smc.huawei.com/", ResponseNamespace = "http://smc.huawei.com/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute("resultCode", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public int setVideoOutSrcEx([System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string siteUri, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] int hdOut, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] int videoSrc)
        {
            object[] results = this.Invoke("setVideoOutSrcEx", new object[] {
                        siteUri,
                        hdOut,
                        videoSrc});
            return ((int)(results[0]));
        }

        /// <remarks/>
        public void setVideoOutSrcExAsync(string siteUri, int hdOut, int videoSrc)
        {
            this.setVideoOutSrcExAsync(siteUri, hdOut, videoSrc, null);
        }

        /// <remarks/>
        public void setVideoOutSrcExAsync(string siteUri, int hdOut, int videoSrc, object userState)
        {
            if ((this.setVideoOutSrcExOperationCompleted == null))
            {
                this.setVideoOutSrcExOperationCompleted = new System.Threading.SendOrPostCallback(this.OnsetVideoOutSrcExOperationCompleted);
            }
            this.InvokeAsync("setVideoOutSrcEx", new object[] {
                        siteUri,
                        hdOut,
                        videoSrc}, this.setVideoOutSrcExOperationCompleted, userState);
        }

        private void OnsetVideoOutSrcExOperationCompleted(object arg)
        {
            if ((this.setVideoOutSrcExCompleted != null))
            {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.setVideoOutSrcExCompleted(this, new setVideoOutSrcExCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smc.huawei.com/queryAuxStreamSourcesEx", RequestNamespace = "http://smc.huawei.com/", ResponseNamespace = "http://smc.huawei.com/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute("resultCode", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public int queryAuxStreamSourcesEx([System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string siteUri, [System.Xml.Serialization.XmlElementAttribute("auxStreams", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = true)] out AuxStreamInfoEx[] auxStreams)
        {
            object[] results = this.Invoke("queryAuxStreamSourcesEx", new object[] {
                        siteUri});
            auxStreams = ((AuxStreamInfoEx[])(results[1]));
            return ((int)(results[0]));
        }

        /// <remarks/>
        public void queryAuxStreamSourcesExAsync(string siteUri)
        {
            this.queryAuxStreamSourcesExAsync(siteUri, null);
        }

        /// <remarks/>
        public void queryAuxStreamSourcesExAsync(string siteUri, object userState)
        {
            if ((this.queryAuxStreamSourcesExOperationCompleted == null))
            {
                this.queryAuxStreamSourcesExOperationCompleted = new System.Threading.SendOrPostCallback(this.OnqueryAuxStreamSourcesExOperationCompleted);
            }
            this.InvokeAsync("queryAuxStreamSourcesEx", new object[] {
                        siteUri}, this.queryAuxStreamSourcesExOperationCompleted, userState);
        }

        private void OnqueryAuxStreamSourcesExOperationCompleted(object arg)
        {
            if ((this.queryAuxStreamSourcesExCompleted != null))
            {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.queryAuxStreamSourcesExCompleted(this, new queryAuxStreamSourcesExCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smc.huawei.com/querySiteVersionInfoEx", RequestNamespace = "http://smc.huawei.com/", ResponseNamespace = "http://smc.huawei.com/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute("resultCode", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public int querySiteVersionInfoEx([System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string siteUri, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] out SiteDeviceVersionInfoEx siteDeviceVersionInfo)
        {
            object[] results = this.Invoke("querySiteVersionInfoEx", new object[] {
                        siteUri});
            siteDeviceVersionInfo = ((SiteDeviceVersionInfoEx)(results[1]));
            return ((int)(results[0]));
        }

        /// <remarks/>
        public void querySiteVersionInfoExAsync(string siteUri)
        {
            this.querySiteVersionInfoExAsync(siteUri, null);
        }

        /// <remarks/>
        public void querySiteVersionInfoExAsync(string siteUri, object userState)
        {
            if ((this.querySiteVersionInfoExOperationCompleted == null))
            {
                this.querySiteVersionInfoExOperationCompleted = new System.Threading.SendOrPostCallback(this.OnquerySiteVersionInfoExOperationCompleted);
            }
            this.InvokeAsync("querySiteVersionInfoEx", new object[] {
                        siteUri}, this.querySiteVersionInfoExOperationCompleted, userState);
        }

        private void OnquerySiteVersionInfoExOperationCompleted(object arg)
        {
            if ((this.querySiteVersionInfoExCompleted != null))
            {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.querySiteVersionInfoExCompleted(this, new querySiteVersionInfoExCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smc.huawei.com/isConnectAuxSourceEx", RequestNamespace = "http://smc.huawei.com/", ResponseNamespace = "http://smc.huawei.com/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute("resultCode", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public int isConnectAuxSourceEx([System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string siteUri, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] out int result, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] [System.Xml.Serialization.XmlIgnoreAttribute()] out bool resultSpecified)
        {
            object[] results = this.Invoke("isConnectAuxSourceEx", new object[] {
                        siteUri});
            result = ((int)(results[1]));
            resultSpecified = ((bool)(results[2]));
            return ((int)(results[0]));
        }

        /// <remarks/>
        public void isConnectAuxSourceExAsync(string siteUri)
        {
            this.isConnectAuxSourceExAsync(siteUri, null);
        }

        /// <remarks/>
        public void isConnectAuxSourceExAsync(string siteUri, object userState)
        {
            if ((this.isConnectAuxSourceExOperationCompleted == null))
            {
                this.isConnectAuxSourceExOperationCompleted = new System.Threading.SendOrPostCallback(this.OnisConnectAuxSourceExOperationCompleted);
            }
            this.InvokeAsync("isConnectAuxSourceEx", new object[] {
                        siteUri}, this.isConnectAuxSourceExOperationCompleted, userState);
        }

        private void OnisConnectAuxSourceExOperationCompleted(object arg)
        {
            if ((this.isConnectAuxSourceExCompleted != null))
            {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.isConnectAuxSourceExCompleted(this, new isConnectAuxSourceExCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        public new void CancelAsync(object userState)
        {
            base.CancelAsync(userState);
        }

        private bool IsLocalFileSystemWebService(string url)
        {
            if (((url == null)
                        || (url == string.Empty)))
            {
                return false;
            }
            System.Uri wsUri = new System.Uri(url);
            if (((wsUri.Port >= 1024)
                        && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0)))
            {
                return true;
            }
            return false;
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    public delegate void setAuxStreamExCompletedEventHandler(object sender, setAuxStreamExCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class setAuxStreamExCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        internal setAuxStreamExCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public int Result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    public delegate void querySitesInfoExCompletedEventHandler(object sender, querySitesInfoExCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class querySitesInfoExCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        internal querySitesInfoExCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public int Result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }

        /// <remarks/>
        public TerminalInfoEx[] sites
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((TerminalInfoEx[])(this.results[1]));
            }
        }

        /// <remarks/>
        public PagesInfoEx pageInfo
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((PagesInfoEx)(this.results[2]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    public delegate void queryVideoOutSrcStateExCompletedEventHandler(object sender, queryVideoOutSrcStateExCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class queryVideoOutSrcStateExCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        internal queryVideoOutSrcStateExCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public int Result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }

        /// <remarks/>
        public VideoSourcesInfoEx[] videoSourcesInfos
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((VideoSourcesInfoEx[])(this.results[1]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    public delegate void ctrlCameraExCompletedEventHandler(object sender, ctrlCameraExCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class ctrlCameraExCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        internal ctrlCameraExCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public int Result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    public delegate void setMainAuxStreamSourcesExCompletedEventHandler(object sender, setMainAuxStreamSourcesExCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class setMainAuxStreamSourcesExCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        internal setMainAuxStreamSourcesExCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public int Result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    public delegate void queryMainStreamSourcesExCompletedEventHandler(object sender, queryMainStreamSourcesExCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class queryMainStreamSourcesExCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        internal queryMainStreamSourcesExCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public int Result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }

        /// <remarks/>
        public AuxStreamInfoEx[] auxStreams
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((AuxStreamInfoEx[])(this.results[1]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    public delegate void isReceiveRemAuxStrmExCompletedEventHandler(object sender, isReceiveRemAuxStrmExCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class isReceiveRemAuxStrmExCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        internal isReceiveRemAuxStrmExCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public int Result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }

        /// <remarks/>
        public int result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[1]));
            }
        }

        /// <remarks/>
        public bool resultSpecified
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[2]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    public delegate void deleteSiteInfoExCompletedEventHandler(object sender, deleteSiteInfoExCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class deleteSiteInfoExCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        internal deleteSiteInfoExCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public int Result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    public delegate void addSiteInfoExCompletedEventHandler(object sender, addSiteInfoExCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class addSiteInfoExCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        internal addSiteInfoExCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public int Result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    public delegate void isSendAuxStreamExCompletedEventHandler(object sender, isSendAuxStreamExCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class isSendAuxStreamExCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        internal isSendAuxStreamExCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public int Result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }

        /// <remarks/>
        public int result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[1]));
            }
        }

        /// <remarks/>
        public bool resultSpecified
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[2]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    public delegate void editSiteInfoExCompletedEventHandler(object sender, editSiteInfoExCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class editSiteInfoExCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        internal editSiteInfoExCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public int Result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    public delegate void setVideoOutSrcExCompletedEventHandler(object sender, setVideoOutSrcExCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class setVideoOutSrcExCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        internal setVideoOutSrcExCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public int Result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    public delegate void queryAuxStreamSourcesExCompletedEventHandler(object sender, queryAuxStreamSourcesExCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class queryAuxStreamSourcesExCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        internal queryAuxStreamSourcesExCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public int Result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }

        /// <remarks/>
        public AuxStreamInfoEx[] auxStreams
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((AuxStreamInfoEx[])(this.results[1]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    public delegate void querySiteVersionInfoExCompletedEventHandler(object sender, querySiteVersionInfoExCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class querySiteVersionInfoExCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        internal querySiteVersionInfoExCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public int Result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }

        /// <remarks/>
        public SiteDeviceVersionInfoEx siteDeviceVersionInfo
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((SiteDeviceVersionInfoEx)(this.results[1]));
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    public delegate void isConnectAuxSourceExCompletedEventHandler(object sender, isConnectAuxSourceExCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class isConnectAuxSourceExCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
    {

        private object[] results;

        internal isConnectAuxSourceExCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public int Result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }

        /// <remarks/>
        public int result
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[1]));
            }
        }

        /// <remarks/>
        public bool resultSpecified
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[2]));
            }
        }
    }
}